package langnstats.project.languagemodel.loglinear;

import langnstats.project.lib.WordType;

public class TrigramFeature extends LLFeature{
	
	private static final long serialVersionUID = 31L; 
	
	private WordType history = null;
	
	public String getFeature(WordType token){
		String feature="";
		if(history == null){
			feature="_"+token.getName();
		}
		else{
			feature=history.getName()+"_"+token.getName();
		}
		history=token;
		return "w1_w2="+feature;
	}
	
	public void rewind(){}

}
